package com.dingwen.treasure.kettle.config;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * 时区配置: 统一设置，各个服务通用
 *
 * @author dingwen
 * @date 2022/04/30
 */
@Configuration(proxyBeanMethods = false)
public class TimeZoneConfig {

    @PostConstruct
    public void setGlobTimeZone() {
        // 北京时间
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8:00"));
    }
}
